package com.ant.storage.dto;

import com.ant.storage.common.PageRequest;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotNull;
/**
 * @author hzd
 * @version 1.0
 * @date 2022/3/16 10:14
 */
@Data
public class DictionaryDto extends PageRequest {

    private Integer Id;

    @NotNull(message="类型名称不能为空")
    @ApiModelProperty(value = "类型名称")
    @TableField("type_name")
    private String typeName;

    @NotNull(message="类型key不能为空")
    @ApiModelProperty(value = "类型key")
    @TableField("type_code")
    private String typeCode;

    @TableField("type_value")
    private String typeValue;

    @ApiModelProperty(value = "排序")
    @TableField("sort_no")
    private Integer sortNo;

    private String remark;

}
